//
//  NSMutableAttributedString+MOTagViewExt.h
//  MOPrefix
//
//  Created by MOiMac on 2021/7/2.
//

#import <Foundation/Foundation.h>

@class MOTagMaker,MOTagView;

@protocol MOTagViewDelegate;

@interface MOTagWeakObject : NSObject

@property (nullable, nonatomic, weak) id<MOTagViewDelegate> delegate;

@property (nullable, nonatomic, weak) MOTagView *tagView;

@end



@interface NSMutableAttributedString (MOTagViewExt)

//当前标签富文本的高度
@property (nonatomic,assign) CGFloat tagHeight;

/**
 快速创建tag标签所需样式
 
 @param tags 字符串数组
 @param maskBlock 初始化标签样式
 @return 标签所需的NSMutableAttributedString
 */
+ (NSMutableAttributedString *)mo_makeTagView:(NSArray<NSString *> *)tags tagMaker:(void (^)(MOTagMaker *))maskBlock;

@end

